/**
 * 
 * 
 * Created on 28 apr. 2011 @ 21:08:30 by Laurens Andriessen
 */

package tests.laurens;

import java.util.Calendar;


/**
 * 
 * @author Laurens Andriessen
 * @version 1.0
 */
public class DateTimeTest {

	/**
	 * 
	 * @author Laurens Andriessen
	 * @param args
	 */
	public static void main(String[] args) {
		Calendar now = Calendar.getInstance();
		System.out.println(now.get(Calendar.HOUR_OF_DAY) + ":" + now.get(Calendar.MINUTE) + ":"
				+ now.get(Calendar.SECOND));

		System.out.println("----");

		System.out.print("test");
		System.out.printf("%03d", 5);

		System.out.println("----");
		System.out.println("");

		System.out.println(String.format("%02d:%02d:%02d.%03d", now.get(Calendar.HOUR_OF_DAY),
				now.get(Calendar.MINUTE), now.get(Calendar.SECOND), now.get(Calendar.MILLISECOND)));
	}

}
